package com.yanqu.road.server.manager.tomb.service;

import com.google.protobuf.AbstractMessage;
import com.google.protobuf.InvalidProtocolBufferException;
import com.yanqu.road.pb.syncMessage.SyncMessage;
import com.yanqu.road.server.command.ICrossServiceCommand;
import com.yanqu.road.server.manager.tomb.TombServiceMgr;

import java.util.concurrent.CompletableFuture;

/**
 * @Author : Cxp
 * @Time : 2024-08-14
 * @Description : 皇陵一键跳转至最深层 跨服转发服务
 */

public class TombOneClickJumpServiceCmd implements ICrossServiceCommand {

    @Override
    public CompletableFuture<AbstractMessage.Builder<?>> execute(SyncMessage.Request request, int activityId, int groupId)
            throws InvalidProtocolBufferException {
        CompletableFuture<AbstractMessage.Builder<?>> completableFuture = new CompletableFuture<>();
        completableFuture.complete(TombServiceMgr.oneClickJump(request.getActivityId(), request.getSenderId()));

        return completableFuture;
    }
}
